//
//  weiXinDingDan.m
//  EJLX
//
//  Created by adc on 15/11/20.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "weiXinDingDan.h"
#import "twoWeiXinDingDan.h"
@implementation weiXinDingDan
+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self=[super init];
    if (self)
    {
        
        _totalPage=[userDic[@"totalPage"]intValue];
         _page=[userDic[@"page"]intValue];
         _pageSize=[userDic[@"pageSize"]intValue];
        NSMutableArray*listAry=userDic[@"list"];
        NSLog(@"***%lu",(unsigned long)listAry.count);
        _otherAry=[NSMutableArray array];
        for (int i=0; i<listAry.count; i++)
        {
            twoWeiXinDingDan*weiDian=[twoWeiXinDingDan userWithDictionary:listAry[i]];
            [_otherAry addObject:weiDian];
        }
        NSLog(@"other+++%lu",(unsigned long)_otherAry.count);

        
        
    }
    return self;
}

@end
